#include "photoapi.h"
#include "photo.h"

PhotoAPI::PhotoAPI()
{
	m_photo = new Photo();
}

void PhotoAPI::setEnvironment(QMainWindow* parentWindow, QWebFrame* webFrame)
{
}

QString PhotoAPI::jsObjectName()
{
    return "photo";
}

QObject *PhotoAPI::jsObjectInstance()
{
    return m_photo;
}

QString PhotoAPI::jsFileName()
{
    return "photo.js";
}

Q_EXPORT_PLUGIN2(PhotoAPI,PhotoAPI)
